Deprecate GtkWindow:allow-grow and GtkWindow::allow_shrink properties
authorJavier Jardón <jjardon@gnome.org>
Tue, 15 Jun 2010 19:11:14 +0000 (21:11 +0200)
committerJavier Jardón <jjardon@gnome.org>
Fri, 2 Jul 2010 19:44:56 +0000 (21:44 +0200)
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=610346

gtk/gtkwindow.c

index 54eaaa365e67bfe244e0a602691668641babf7e3..d07dea84ac9bf3973c905d855012e9a903f86876 100644 (file)
@@ -573,6 +573,14 @@ gtk_window_class_init (GtkWindowClass *klass)
                                                        NULL,
                                                        GTK_PARAM_WRITABLE));
 
+  /**
+   * GtkWindow:allow-shrink:
+   *
+   * If %TRUE, the window has no mimimum size. Setting this to %TRUE is
+   * 99&percnt; of the time a bad idea.
+   *
+   * Deprecated: 2.22: Use GtkWindow:resizable property instead.
+   */
   g_object_class_install_property (gobject_class,
                                    PROP_ALLOW_SHRINK,
                                    g_param_spec_boolean ("allow-shrink",
@@ -580,15 +588,22 @@ gtk_window_class_init (GtkWindowClass *klass)
                                                         /* xgettext:no-c-format */
                                                         P_("If TRUE, the window has no mimimum size. Setting this to TRUE is 99% of the time a bad idea"),
                                                         FALSE,
-                                                        GTK_PARAM_READWRITE));
+                                                        GTK_PARAM_READWRITE | G_PARAM_DEPRECATED));
 
+  /**
+   * GtkWindow:allow-grow:
+   *
+   * If %TRUE, users can expand the window beyond its minimum size.
+   *
+   * Deprecated: 2.22: Use GtkWindow:resizable property instead.
+   */
   g_object_class_install_property (gobject_class,
                                    PROP_ALLOW_GROW,
                                    g_param_spec_boolean ("allow-grow",
                                                         P_("Allow Grow"),
                                                         P_("If TRUE, users can expand the window beyond its minimum size"),
                                                         TRUE,
-                                                        GTK_PARAM_READWRITE));
+                                                        GTK_PARAM_READWRITE | G_PARAM_DEPRECATED));
 
   g_object_class_install_property (gobject_class,
                                    PROP_RESIZABLE,